<tagLib name="html" />
{$header}
<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
<!--  功能组区域  -->
<div class="btn-toolbar">
      <div class="btn-group">
  <button class="btn btn-primary" onclick="add()"><i class="icon-plus icon-white"></i> 新增</button>
<button class="btn btn-primary" onclick="edit()"><i class="icon-edit icon-white"></i> 编辑</button>
<button class="btn btn-primary" onclick="foreverdel()"><i class="icon-trash icon-white"></i> 删除</button>
</div><!-- 查询区域 -->
<form class="search-form pull-right" method='post' action="__URL__">
        <input type="text" class="search-query span4" name="keywords" <notempty name='_REQUEST.keywords'>
        <php>echo 'value="'.urldecode($_REQUEST['keywords']).'"'</php>
        <else/>
        placeholder="搜索"
    </notempty>
    >
    <input type="submit" class="btn btn-primary" value="搜索"></form>
</div>
<!-- 功能组区域结束 -->

<!-- 列表显示区域  -->
<div class="list" >

<div id="result" class="result none"></div>
            <table class="table table-bordered table-striped" id="checkList">
                <tbody>
                    <tr>
                        <th width="8"><input type="checkbox" onclick="CheckAll('checkList')" id="check"></th>
                        <th width="10%"><a title="按照编号 " >编号</a></th>
                        <th><a title="按照组名 " >组名</a></th>
                        <th><a title="按照状态 " >状态</a></th>
                        <th><a title="排序位 " >排序位</a></th>
                        <th>操作</th></tr>
                <volist name="catalogList" id="catalog">
                    <tr>
                        <td><input type="checkbox" value="{$catalog.id}" name="key" /></td>
                        <td><a href="__URL__/edit/id/{$catalog.id}">{$catalog.id}</a></td>
                        <td><a href="javascript:edit('{$catalog.id}')">{$catalog.level}{$catalog.name}</a></td>
                        <td>{$catalog.status|getStatus}</td>
                        <td>{$catalog.sort}</td>
                        <td> {$catalog.status|showStatus=$catalog['id']}&nbsp;<a href="__URL__/edit/id/{$catalog.id}">编辑</a>&nbsp; <a href="__URL__/add/cid/{$catalog.id}">增加分类</a>&nbsp; <a href="__URL__/sort/id/{$catalog.id}">排序</a></td>
                    </tr>
                </volist>
                </tbody>
            </table>
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 --><include file="Public:footer"/>

